})} ,System.Threading.Tasks.Task})} ,System.IObservable{--0}})}
IInteraction.RegisterHandler(Action>) method¶
Defined in
Type: IInteractionReactiveUI.Binding
Assembly: ReactiveUI.Binding.dll
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481, net471
Overloads¶
- 1.
IDisposable RegisterHandler(Action<IInteractionContext<TInput, TOutput>> handler) - 2.
IDisposable RegisterHandler(Func<IInteractionContext<TInput, TOutput>, Task> handler) - 3.
IDisposable RegisterHandler<TDontCare>(Func<IInteractionContext<TInput, TOutput>, IObservable<TDontCare>> handler)
1. Overload¶
IDisposable RegisterHandler(Action<IInteractionContext<TInput, TOutput>> handler)
Summary: Registers a synchronous interaction handler.
Parameters
| Name | Type | Description |
|---|---|---|
handler | Action | The handler. |
Returns: IDisposable -- A disposable which, when disposed, will unregister the handler.
2. Overload¶
IDisposable RegisterHandler(Func<IInteractionContext<TInput, TOutput>, Task> handler)
Summary: Registers a task-based asynchronous interaction handler.
Parameters
| Name | Type | Description |
|---|---|---|
handler | Func | The handler. |
Returns: IDisposable -- A disposable which, when disposed, will unregister the handler.
3. Overload¶
IDisposable RegisterHandler<TDontCare>(Func<IInteractionContext<TInput, TOutput>, IObservable<TDontCare>> handler)
Summary: Registers an observable-based asynchronous interaction handler.
Type parameters
| Name | Description |
|---|---|
TDontCare | The signal type. |
Parameters
| Name | Type | Description |
|---|---|---|
handler | Func | The handler. |
Returns: IDisposable -- A disposable which, when disposed, will unregister the handler.